/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *
 * @Original Author: jin Chen
 * @date: Apr 15, 2004$
 * @version: 1.0
 */
package edu.psu.geovista.app.dataloader.v1.actions;

import java.awt.event.ActionEvent;

public class ShowProjectNamesAction  extends BasicAction{
    public void actionPerformed(ActionEvent e) {
        // 
        //dataloader.loadProjectInfo();

        /*int projectType = this.dataloader.getAskProjPane().getProjectType();
        wizard.setProjectCategory(projectType);
        if(projectType==Wizard.Current){ //current project
            //String currProjName=dataloader.getCurrentProjectName() ;

            dataloader.setDataInfo(wizard.getProject());
            dataloader.showChooseDataDlg() ;//for current project, skip project pane
        }
        else{*/
            //dataloader.disposeDialog();
             BasicAction qlAction=this.dataloader.getAction(ActionManager.Act_QuickLoad);
            if(wizardData.getProjectCategory() == WizardData.New ){ //new project

                qlAction.setEnabled(false);
            }
            else{ //exisitng
                qlAction.setEnabled(true);
            }
            this.dataloader.showProjectDlg();// 
        /*}*/
    }

}
